package com.example.product_practices.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.product_practices.domain.User;
import com.example.product_practices.vo.SocialUser;
import com.example.product_practices.vo.UserLoginVo;
import com.example.product_practices.vo.UserRegister;
import com.example.product_practices.exception.PhoneException;
import com.example.product_practices.exception.UsernameException;
import xin.altitude.cms.common.entity.AjaxResult;

public interface IUserService extends IService<User> {

    void regist(UserRegister userRegist);

    User login(UserLoginVo userLoginVo);

    void checkPhoneUnique(String phone) throws PhoneException;

   void checkUserNameUnique(String userName) throws UsernameException;

    User oauthlogin(SocialUser socialUser) throws Exception;

    int getId(String name) ;
}
